#pragma once
#include <Winsock2.h>
#include <windows.h>
#include <process.h>

#include "MyDevice.h"
using namespace std;

#define  MY_DEBUG				1

class  MyService
{
public:
	 MyService();
	~ MyService();

private:
	HANDLE		m_thread_handle_listen;
	HANDLE		m_thread_handle_dispatch;

	BOOL	BeginDispatch();
	void	EndDispatch();
public:
	BOOL	Startup(BYTE b0,BYTE b1,BYTE b2,BYTE b3,USHORT uHostPort,HWND window);
	void	Shutdown();
};